<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{:token()}
    <input name="row[parent_id]" type="hidden" value="{$row.parent_id}">
<!--分类
    <div class="form-group">
        <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[parent_id]">
                {foreach name="parentList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.parent_id" }selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
-->
  
<!--    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delete_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delete_time" data-rule="required" min="0" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delete_time]" type="text" value="{:$row.delete_time?datetime($row.delete_time):''}">
        </div>
    </div>-->
<!--    名称-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <!--    别名-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('as_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-as_name" data-rule="required" class="form-control" name="row[as_name]" type="text" value="{$row.as_name|htmlentities}">
        </div>
    </div>
<!--    描述-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" value="{$row.description|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Iscomment')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[iscomment]', ['1'=>__('Yes'), '0'=>__('No')], $row['iscomment'])}
        </div>
    </div>

<!--    是否在侧边栏展示-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_sidebar')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_sidebar]', ['1'=>__('Yes'), '0'=>__('No')], $row['is_sidebar'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>


    <!--排序-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('List_order')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-list_order" class="form-control" name="row[list_order]" type="number" step="1" min="0" data-rule="required;digits;integer;range(0~)" value="{$row.list_order|htmlentities}" placeholder="数字越小排序越靠前">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
